﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Plazos
{
    public partial class Form_agrCur : Form
    {
        Curso c = new Curso();
        
        public Form_agrCur()
        {
            InitializeComponent();
        }

        private void button_guardar_Click(object sender, EventArgs e)
        {
            c.NombreCur = text_nombreCur.Text;
            c.FechaPractica = text_fechaPract.Text;
            c.Sap = text_sap.Text;

            Console.WriteLine("+++ CURSO +++");
            Console.WriteLine(c.NombreCur);
            Console.WriteLine(c.FechaPractica);
            Console.WriteLine(c.Sap);

            MessageBox.Show("tirar mensaje de exito cuando guarde en la BD");
        }

        private void button_cancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void button_ok1_Click(object sender, EventArgs e)
        {
            text_iniLec.Text = monthCalendar1.SelectionStart.Day +  "/" + monthCalendar1.SelectionStart.Month + "/" +  monthCalendar1.SelectionStart.Year;
            
        }

        private void button_ok2_Click(object sender, EventArgs e)
        {
           
            text_fechaLect.Text = monthCalendar1.SelectionStart.Day + "/" + monthCalendar1.SelectionStart.Month + "/" + monthCalendar1.SelectionStart.Year;
                
        }

        private void button_ok3_Click(object sender, EventArgs e)
        {
            text_fechaPract.Text = monthCalendar1.SelectionStart.Day + "/" + monthCalendar1.SelectionStart.Month + "/" + monthCalendar1.SelectionStart.Year;

        }

        private void text_nombreCur_TextChanged(object sender, EventArgs e)
        {
            
       
        }

        private void text_sap_TextChanged(object sender, EventArgs e)
        {
            
            MessageBox.Show("nombre" + c.NombreCur );
            
        }
        
    }

}
